<?
	include('header.php');
	if($_GET['id']) {
		$drizzo_post_id = $_GET['id'];
	}
?>
		<div id="content">

			<h2>Posts and Pages Tagged with '<? echo $drizzo_post_id; ?>'</h2>
			<br />
						
<?
		$the_posts = (drizzo_tag_search($drizzo_post_id)); // Start the Loop
		if(count($the_posts) > 0) {
			foreach($the_posts as $the_post) {
?>
			<div class="post">
				<h2><a href="<? echo drizzo_post_permalink(); ?>" title="<? echo drizzo_post_title(); ?>"><? echo drizzo_post_title(); ?></a></h2>
				<p class="post_meta">By <? echo drizzo_post_author("nice_name"); ?> on <? echo drizzo_post_date(); ?></p>

				<p class="content"><? echo drizzo_post_excerpt(); ?></p>

				<p class="post_meta"><span class="tags_meta"><strong>Tags:</strong> <? echo drizzo_post_tags(); ?></span> | <span class="comments_meta"><strong><a href="<? echo drizzo_post_permalink(); ?>#comments" title="View Comments">Comments:</strong> <? echo drizzo_comment_count(); ?></a></span><? echo drizzo_edit_link(" | ", ""); ?></p>
			</div>

<?
			}
		} else {
?>
			<div class="post">
				<p>No posts were found under that tag. Maybe one of these others will help.</p>
<? echo drizzo_tag_cloud(); ?>
			</div>
<?		
		}
?>

		</div>
<?
	include('sidebar.php');
	include('footer.php');
?>